import { createPinia } from 'pinia';

// 引入持久化存储插件
import piniaPluginPersist from 'pinia-plugin-persist';

import { resetSetupStore } from './plugins';

export function setupStore(app) {
	const store = createPinia();
	store.use(piniaPluginPersist);
	store.use(resetSetupStore);
	app.use(store);
}

export * from './modules';
